package com.ms.education.course.service;

import com.ms.education.course.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author ms
 * @since 2023-01-18
 */
public interface VideoService extends IService<Video> {

    //根据课程id删除课程视频
    void removeBatchByCourseIds(List<Integer> idList);

    void removeVideoByChapterId(Integer chapterId);

    void deleteVideoById(Video video);

    Map<String, Integer> getVideoPlayNums(String[] videoSourceIds);
}
